package com.motorhome.api.common.statics;

import java.io.IOException;
import java.util.Properties;

/**
 * @author: John
 */
public class ApiStatics {

    private static Properties prop = new Properties();

    static {
        try {
            prop.load(ApiStatics.class.getResourceAsStream("/config/conf-api.properties"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static final String baseFileUrl = prop.getProperty("api.file.url");
    public static final String baseFilePath = prop.getProperty("api.file.path");

    public static final String OPEN_ID = prop.getProperty("api.open.openid");
    public static final String OPEN_SECRET = prop.getProperty("api.open.secret");
    public static final String OPEN_USERACCOUNT = prop.getProperty("api.open.useraccount");
    public static final String ADD_MEMBER_URL = prop.getProperty("api.open.add_member_url");
    public static final String UPDATE_MEMBERPOINT_URL = prop.getProperty("api.open.update_memberpoint_url");
    public static final String GET_MEMBERINFO_URL = prop.getProperty("api.open.get_memberinfo_url");
    public static final String GET_COUPNSENDPAGEDV2_URL = prop.getProperty("api.open.get_coupnsendpagedv2_url");
    public static final String SUBCOUPON_URL = prop.getProperty("api.open.subcoupon_url");
    public static final String CONSUME_URL = prop.getProperty("api.open.consume_url");

    public static final String DEVICE_ACCESSTOKEN_KEY = "device_access_token";
    public static final String DEVICE_USERNAME = "夏平简化版GPS";
    public static final String DEVICE_PASSWORD = prop.getProperty("api.device.password");
    public static final String DEVICE_LOGIN_URL = prop.getProperty("api.device.login_url");
    public static final String DEVICE_POSITION_URL = prop.getProperty("api.device.position_url");
    public static final String DEVICE_LIST_POSITION_URL = prop.getProperty("api.device.list_position_url");
    public static final String DEVICE_RES_URL = prop.getProperty("api.device.res_url");


}
